package com.example.demo.dao;

import com.example.demo.entity.PS;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface PSRepository extends JpaRepository<PS, Integer> {

    @Query(value = "select * from ps where psno=:psno", nativeQuery = true)
    PS findByPsno(@Param("psno") String psno);
}
